import grace from "../../../utils/grace.js";
import { Theme } from 'theme-model.js';
let theme = new Theme();

grace.page({
  /**
   * 页面的初始数据
   */
  data: {
    theme: {}
  },
  onLoad(event) {
    // 得到主题
    let theme_id = event.theme_id;
    theme.getThemeData({'theme_id': theme_id}, (data) => {
      this.$data.theme = data;
    })
  }
})